/**
 * @author ：wang-ting
 * @Date：2025/3/21 23:26
 */
import java.util.Scanner;
public class CirclePoint {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        double x = input.nextDouble();//横坐标
        double y = input.nextDouble();//纵坐标
        if (x < 10) {
            if (y < 10) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        } else {
            System.out.println("No");
        }
    }
}